//
//  OALoginTest.m
//  OANetworkManager_Tests
//
//  Created by Guo Rui on 2018/2/5.
//  Copyright © 2018年 GuoRui. All rights reserved.
//

#import "Tests.h"
#import "AppNetworkingManager+Login.h"

static NSString * const testPhone = @"18317160680";

@interface OALoginTest : Tests

@end

@implementation OALoginTest

- (void)setUp {
    [super setUp];
    // Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown {
    // Put teardown code here. This method is called after the invocation of each test method in the class.
    [super tearDown];
}

- (void)testLogin {

    [self expectation:^(void (^fulfill)(void)) {
        [AppNetworkingManager loginWithName:testPhone
                                   password:@"111111"
                                 completion:^(id object, NSError *error) {
                                     NSLog(@"登录： %@", object);
            
                                     fulfill();
        }];
    }];
}



- (void)testPerformanceExample {
    // This is an example of a performance test case.
    [self measureBlock:^{
        // Put the code you want to measure the time of here.
    }];
}

@end
